@extends('dashboard.base')

@section('content')
	<div class="card-header"></div>

	<table class="table table-responsive-sm">
		<thead>
			<th>订单号</th>
			<th>订单金额</th>
			<th>创建时间</th>
			<th>用户</th>
			<th>商品数量</th>
			<th>订单状态</th>
			<th>支付方式</th>
			<th>操作</th>
		</thead>
		<tbody>
			@foreach($datas as $v)
				<tr>
					<td>{{ $v->order_number }}</td>
					<td>{{ $v->order_total_price }}</td>
					<td>{{ $v->created_at }}</td>
					<td>{{ $v->user->name }}</td>
					<td></td>
					<td>{{ $v->statue }}</td>
					<td>{{ $v->payment_method }}</td>
					<td>
						
						<a href="{{ route('admin.orders.show', $v) }}" class="badge badge-info">订单详情</a>
						<a href="" class="badge badge-secondary">编辑订单</a>
						<a href="" class="badge badge-danger">关闭订单</a>
					</td>
				</tr>
			@endforeach
		</tbody>
	</table>
@endsection